package metamodel;

import java.util.HashMap;
import java.util.Map;

public class MetamodelManager {

	private static MetamodelManager instance = new MetamodelManager();
	
	private Map<String, MyClass> classes = new HashMap<String, MyClass>();

	private MetamodelManager() { } 
	
	public void addClass(MyClass klass) {
		this.classes.put(klass.getName(), klass);
	}

	public MyClass getClass(String superType) {
		return classes.get(superType);
	}

	public static MetamodelManager getInstance() {
		return instance;
	}

	public Map<String, MyClass> getClasses() {
		return classes;
	}

	public void setClasses(Map<String, MyClass> classes) {
		this.classes = classes;
	}

}
